<div class="holiday-cs">
	<div class="control">
		<table class="main-selector">
			<tbody>
				<tr>
					<td colspan="12" class="year-selector-td">
						<div class="year-selector">
							<button class="year-sb year-sb-pre">
								&lt;&lt;
							</button>
							<span class="sd-year" onselectstart="return false;">{$T.cs.getYear()}年</span>
							<button class="year-sb year-sb-next">
								&gt;&gt;
							</button>
						</div>
					</td>
				</tr>
				<tr>
					{#for index = 1 to 12}
						{#if ( $T.cs.getYear() == $T.cs.getNowYear() && $T.index == $T.cs.getNowMonth() ) == false}
							<td class="month">
								<a href="javascript: void(0);" class="month-control {$T.cs.getMonth() == $T.index ? 'now-month' : ''}" id="month-{$T.index}">
									{$T.index}月
								</a>
							</td>
						{#else}
							<td class="month">
								<a href="javascript: void(0);" class="month-control {$T.cs.getMonth() == $T.index ? 'now-month' : ''} today-month" id="month-{$T.index}">
									{$T.index}月
								</a>
							</td>
						{#/if}
					{#/for}
				</tr>
			</tbody>
		</table>
	</div>
	<div style="display: none;">{$T.dayInMonth = $T.cs.getStartDay()}</div>
	<table class="data-table" cellspacing="0">
		<thead>
			<tr>
				<th class="data-head" width="50%">日期</th>
				<th class="data-head" width="50%">是否节假日</th>
			</tr>
		</thead>
		<tbody>
			{#for index = 1 to $T.cs.getMaxDayInMonth()}
				<tr class="{$T.index == $T.cs.getMaxDayInMonth() ? 'last' : ''} {$T.index % 2 == 0 ? 'odd' : 'even'} {($T.dayInMonth % 7 == 6 || $T.dayInMonth % 7 == 0) ? 'day-dd' : ''}">
					{#if ( $T.index == $T.cs.getNowDate() && $T.cs.getYear() == $T.cs.getNowYear() && $T.cs.getMonth() == $T.cs.getNowMonth() ) == false}
						<td class="date filed">
							{$T.cs.getYear()} 年 {$T.cs.getMonth()} 月<span class="date-day"> {$T.index}</span> 日<span class="date-day"> 周{$T.cs.getChineseDayStr(($T.dayInMonth ++ ) % 7)}</span>
						</td>
					{#else}
						<td class="date filed today">
							<span class="today">
								{$T.cs.getYear()} 年 {$T.cs.getMonth()} 月<span class="date-day"> {$T.index}</span> 日<span class="date-day"> 周{$T.cs.getChineseDayStr(($T.dayInMonth ++ ) % 7)}</span>
							</span>
						</td>
					{#/if}
					<td class="filed">
						{#if $T.me.isHoliday($T.cs.getYear(), $T.cs.getMonth(), $T.index, ($T.dayInMonth - 1) % 7)}
								<input type="checkbox" name="holiday" checked="checked" class="holiday-select" id="date-{$T.cs.getYear()}-{$T.cs.getMonth()}-{$T.index}"/>
							{#else}
								<input type="checkbox" name="holiday" class="holiday-select" id="date-{$T.cs.getYear()}-{$T.cs.getMonth()}-{$T.index}"/>
						{#/if}
					</td>
				</tr>
			{#/for}
		</tbody>
	</table>
</div>